class Main
{
    public static void main(String[] args)
    {
        double[] a = {9.72, 8.88, 9.03, 9.12, 9.12, 8.99, 8.97, 7.69};
        double[] b = {79, 64, 56, 90, 90, 77, 72, 88, 69, 79};
        ComputerAverage computerGymnastics;
        computerGymnastics = new Gymnastics();
        double result = computerGymnastics.average(a);
        System.out.println();
        System.out.printf("选手得分：%5.3f\n", result);
        computerGymnastics = new School();
        System.out.printf("班级平均分：%-5.2f\n", computerGymnastics.average(b));
    }
}

